package com.geekstudy.week5.tool;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class JdbcTool {

    public Connection getJdbcConnection() throws SQLException {
        // Class.forName("com.mysql.cj.jdbc.Driver");
        String url = "jdbc:mysql://127.0.0.1:3306/geek_java4";
        String username = "java4";
        String password = "java4";
        Connection connection = DriverManager.getConnection(url, username, password);
        return connection;
    }

}
